package wang.d2.interface_demo;

import java.util.ArrayList;

public class ClassManger {
    private ArrayList<Student> Students = new ArrayList<>();
    private StudentOperator s = new StudentOperatorImp2();

    public ClassManger(){
        Students.add(new Student("迪丽热巴",'女',100));
        Students.add(new Student("古力娜扎",'女',90));
        Students.add(new Student("马儿扎哈",'男',80));
        Students.add(new Student("故而巴哈",'男',60));
    }
    //打印全部信息
    public void printfInfo(){
      s.printfallinfo(Students);
    }
    //打印全部学生的平均分
    public void printfScore(){
        s.printfallscore(Students);
    }
}

